# punch_logs/urls.py
from django.urls import path, include
from rest_framework.routers import DefaultRouter
from .views import PunchLogViewSet

router = DefaultRouter()
router.register(r'punch_logs', PunchLogViewSet, basename='punch_log')  # 注册视图集

urlpatterns = [
    path('', include(router.urls)),  # 包含路由
]
